<template>
	<view style="display: inline-block;">
		<view class="tips-presale-box" v-if="type=='presale'">预售</view>
		<view class="tips-package-box" v-if="type=='package'">配送到校</view>
		<view class="tips-combination-box" v-if="type=='combination'">商品组合包</view>
	</view>
</template>

<script>
	export default {
		name: "tips-icon",
		props: {
			type: {
				type: String
			}
		},
		data() {
			return {

			};
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.tips-presale-box,.tips-package-box,.tips-combination-box{
		display: inline-block;
		height: 42rpx;
		border-radius: 6rpx;
		font-size: 25rpx;
		line-height: 40rpx;
		text-align: center;
	}
	.tips-presale-box{
		width: 77rpx;
		background-color: #fff;
		color: #ec3f34;
	}
	.tips-package-box{
		width: 131rpx;
		background-color: #ec3d33;
		color: #fff;
	}
	.tips-combination-box{
		width: 148rpx;
		background-color: #eb9074;
		color: #fff;
	}
</style>